The first part of a SELECT CASE statement is missing or misspelled. Also check other control structures within the SELECT...END SELECT structure and verify that they are correctly matched. For example, an IF block without a matching ENDIF inside the SELECT...END SELECT structure generates this error.